import request from '@/utils/request'

export function addUser(paramsObj) {
  return request({
    url: '/users/addUser',
    method: 'post',
    params: paramsObj
  })
}
export function delUsers(paramsObj) {
  return request({
    url: '/users/delUser',
    method: 'post',
    params: paramsObj
  })
}
export function getUserDetail(paramsObj) {
  return request({
    url: '/users/getUserDetail',
    method: 'post',
    params: paramsObj
  })
}
export function getUsers(paramsObj) {
  return request({
    url: '/users/getUsers',
    method: 'post',
    params: paramsObj
  })
}
export function updateMyPwd(paramsObj) {
  return request({
    url: '/users/updateMyPwd',
    method: 'post',
    params: paramsObj
  })
}
export function updatePwd(paramsObj) {
  return request({
    url: '/users/updatePwd',
    method: 'post',
    params: paramsObj
  })
}
export function updateUser(paramsObj) {
  return request({
    url: '/users/updateUser',
    method: 'post',
    params: paramsObj
  })
}
export function updateUserRoles(paramsObj) {
  return request({
    url: '/users/updateUserRoles',
    method: 'post',
    params: paramsObj
  })
}

